<div id="left_side">
	<div id="chords">
		<div id="chords_thai">
		<h2 class="tab tabRed">เพลงไทย</h2>
		<?php if(!empty($dataChordsThai)):?>
			<ul>
			<?php foreach($dataChordsThai as $key => $value):?>
				<li>
					<a class="_player" href="<?php echo base_url().'play/'.$value->chords_id.'-'.seo_url($value->song_name);?>" target="_blank">
						<div class="image">
							<?php echo exec_image(array(
								'folder' => ($value->song_id != NULL ? 'album':'chords'),
								'dimension' => '45x45',
								'file_name' => @$value->album_file_name.'.'.@$value->album_file_ext,
								'alt' => ''.@$dataResults->song_name.'',	
								'title' => ''.@$dataResults->song_name.''	
								)
							);?>
						</div>
						<div class="description">
							<div class="songName"><?php echo $value->song_name;?></div>
						</div>
					</a>
					<a class="artistName" href="<?php echo base_url().'artist/'.seo_url($value->artist_name);?>" target="_blank"><?php echo $value->artist_name;?></a>
					<span class="views">ดู <?php echo $value->views;?> ครั้ง</span>
				</li>
			<?php endforeach;?>
			</ul>
			<a class="readMoreChords" href="<?php echo base_url().'new_released/thai/all/';?>"><div>ดูเพลงไทยทั้งหมด</div></a>
		<?php endif;?>
		</div>
		<div id="chords_inter">
		<h2 class="tab tabRed">เพลงสากล</h2>
		<?php if(!empty($dataChordsInter)):?>
			<ul>
			<?php foreach($dataChordsInter as $key => $value):?>
				<li>
					<a class="_player" href="<?php echo base_url().'play/'.$value->chords_id.'-'.seo_url($value->song_name);?>" target="_blank">
						<div class="image">
							<?php echo exec_image(array(
								'folder' => ($value->song_id != NULL ? 'album':'chords'),
								'dimension' => '45x45',
								'file_name' => @$value->album_file_name.'.'.@$value->album_file_ext,
								'alt' => ''.@$dataResults->song_name.'',	
								'title' => ''.@$dataResults->song_name.''	
								)
							);?>
						</div>
						<div class="description">
							<div class="songName"><?php echo $value->song_name;?></div>
						</div>
					</a>
					<a class="artistName" href="<?php echo base_url().'artist/'.seo_url($value->artist_name);?>" target="_blank"><?php echo $value->artist_name;?></a>
					<span class="views">ดู <?php echo $value->views;?> ครั้ง</span>	
				</li>
			<?php endforeach;?>
			</ul>
			<a class="readMoreChords" href="<?php echo base_url().'new_released/inter/all/';?>"><div>ดูเพลงสากลทั้งหมด</div></a>
		<?php endif;?>
		</div>
		<div class="clear"></div>
		<!--บทความ-->
		<?php if(!empty($dataChordsArticleIndex)):?>
		<div class="header"><span>บทความ</span></div>
		<ul class="chords_block_article">
			<?php foreach($dataChordsArticleIndex as $value):?>
			<li>
				<a href="<?php echo base_url();?>archives/<?php echo $value->article_id.'-'.seo_url($value->article_subject);?>" target="_blank">
					<div class="image">
						<?php echo exec_image(array(
							'folder' => 'chords',
							'dimension' => '315x190',
							'file_name' => @$value->image->article_file_name.'.'.@$value->image->article_file_ext,
							'alt' => ''.$value->article_subject.'',	
							'title' => ''.$value->article_subject.''	
							)
						);?>					
					</div>
				</a>
				<div class="info">
					<div class="fixHeight">
						<a href="<?php echo base_url();?>archives/<?php echo $value->article_id.'-'.seo_url($value->article_subject);?>" target="_blank"><h3><?php echo $value->article_subject;?></h3></a>
						<p><?php echo $value->article_brief;?></p>
					</div>
					<span class="post">
						<?php echo date('d.m.Y',strtotime($value->article_publish_date));?><span class="grayLight"> l </span><?php echo number_format($value->views);?> VIEWS
					</span>
				</div>	
			</li>
			<?php endforeach;?>	
		</ul>
		<a class="readMoreChords" href="<?php echo base_url().'article';?>"><div>อ่านบทความทั้งหมด</div></a>
		<?php endif;?>		
	</div>
</div>
<div id="right_side">
	<!--Module-->
	<?php
	if(!empty($module))
	foreach($module as $value):?>
	<?php echo $value;?>
	<?php endforeach;?>
</div>
<div class="clear">
</div>